< previous page page_49 next page >

Page 49
(table continued from previous page)
ControlDescription
File list boxUsed to display a list of files in a particular folder. This is used to enable the user to select a particular file from a specific hard drive and folder.
ShapeUsed to draw a rectangle, square, oval, circle, rounded rectangle, or rounded square on a form. This control is not actually used much in a business application but could be used if youre writing a drawing program.
LineUsed to draw lines on your form. I typically use this control to separate groups of controls on my form.
ImageUsed to display a graphical image (BMP, JPEG, GIF, and so on) on a form. This control is very similar to a picture control but doesnt use up as much memory. There are also differences in the methods and properties between these two controls.
DataThe data control allows you to retrieve data from a data source and then display that data into the text boxes on a form. This control is now superceded by the ADO data control, which youll learn about in a later chapter. Therefore, this control should not be used.
OLEAllows you to insert objects from other applications into your Visual Basic form. For example, you may place a Microsoft Word or Excel object on your form so your users can interact with these applications within your application.

Resizing and Moving Controls
After a control has been added to a form, you can move or resize it by clicking it one time to give it focus. You can then move the control by clicking it anywhere and dragging it with your mouse. You can resize the control by grabbing one of the resizing handles on the sides of the control and moving your mouse while holding down the left button. The resizing handles are the squares on the outside corners of the control, as shown in Figure 3.2.
8160-0049a.gif
Figure 3.2
Resizing handles on a label control.

 
< previous page page_49 next page >

If you like this book, buy it!